<template>
<div class="project-set-index">
    <el-menu router :default-active="$route.path" mode="horizontal">
        <el-menu-item v-for="(item, i) in list" :key="i" :index="item.path">{{item.name}}</el-menu-item>
    </el-menu>
    <router-view></router-view>
</div>
</template>

<script>
export default {
    name: 'ProjectSet',
    data () {
        return {
            list: [
                { name: '项目设置', path: '/projects/projectSet/sets' },
                { name: '成员管理', path: '/projects/projectSet/member' },
                { name: '临时表清除', path: '/projects/projectSet/clear' }
            ]
        }
    }
}
</script>
<style lang="less">
    .project-set-index {
        .el-menu-item, .el-menu {
            background: none !important;
        }
    }
</style>
